package com.kuaimacode.kframework.mybatis.models.index;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("app_menu")
public class AppMenu {

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "父级ID")
    @TableField(value = "parent_id")
    private String parentId;

    @ApiModelProperty(value = "菜单名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "是否有效 0 无效 1 有效")
    @TableField(value = "is_valid")
    private Byte isValid;

    @ApiModelProperty(value = "排序")
    @TableField(value = "sort")
    private Integer sort;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at")
    private Date createAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_at")
    private Date updateAt;

    @ApiModelProperty(value = "编码")
    @TableField(exist = false)
    private String code;

}